package cn.com.hhrcw.block.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author lixingxing
 * @since 2020-10-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Block implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    /**
     * 父id
     */
    private String parentId;

    /**
     * 区块名称
     */
    private String name;

    /**
     * 区块类型
     */
    private String type;

    /**
     * 区块编码
     */
    private String code;

    /**
     * 排序
     */
    private Integer sequence;

    /**
     * 创建时间
     */
    private Date createTime;

    private String createBy;

}
